﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;

namespace Musicallis.Models
{
    public class ProductsContext : DbContext
    {
        public ProductsContext()
            : base("DefaultConnection")
        {
        }

        public DbSet<Product> Products { get; set; }

        public DbSet<Color> Colors { get; set; }
    }

    public class Product
    {
        public int Id { get; set; }
        public string Nome{ get; set; }
        public double Valor { get; set; }
        public int Quantidade { get; set; }
        public virtual Color Cor { get; set; }
    }

    public class Color
    {
        public int Id { get; set; }
        public string Nome { get; set; }
    }
}